<?php

class m131104_043439_oak extends CDbMigration
{
	public function safeUp()
	{
        $sql = 'CREATE TABLE `{{location}}`
                (
                    `id` bigint PRIMARY KEY,
                    `name` varchar(255),
                    `latitude` double,
                    `longitude` double,
                    `created_at` datetime,
                    `updated_at` datetime
                )
                ENGINE=InnoDB DEFAULT CHARSET=utf8;';
        
        $this->execute($sql);
	}
    
    public function safeDown()
    {
        return false;
    }
}